﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Media.ascx.cs" Inherits="CuoiHoi.UserControls.Media" %>

<div class="row">
    <%--<h1>Album Ảnh Cưới</h1>--%>
    <% for (int i = 0; i < TbAlbumAnh.Rows.Count; i++)
       {     %>

    <a rel="nofollow" href="<% Response.Write(
                                   GetRouteUrl("ChiTietMedia", 
                                   new {
                                       TitleMedia = CuoiHoi.Router.NonUnicode(TbAlbumAnh.Rows[i]["TenAlbum"].ToString()),
                                       IdMedia= TbAlbumAnh.Rows[i]["idTheLoai"].ToString()    ,
                                       IdItemMedia = TbAlbumAnh.Rows[i]["idAlbum"].ToString(),
                                   })); %>">
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                <img alt='<% Response.Write(TbAlbumAnh.Rows[i]["TenAlbum"].ToString()); %>'
                    src='../images/<% Response.Write(SelectAnhDaiDien(TbAlbumAnh.Rows[i]["idAlbum"].ToString())); %>'
                    style="width: 300px; height: 200px;" />
                <div class="caption">
                    <h4><% Response.Write(TbAlbumAnh.Rows[i]["TenAlbum"].ToString()); %></h4>
                </div>
            </div>
        </div>
    </a>
    <%}%>
</div>
